package com.example.kiratest.realize.Controller;


import com.example.kiratest.realize.Service.PythonService;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;
import java.net.URISyntaxException;

@RestController
@RequestMapping("/python")
public class PythonController {

    @Resource
    @Qualifier("pythonExeServiceImpl")
    public PythonService pythonExeServiceImpl;

    @Resource
    @Qualifier("pythonServiceImpl")
    public PythonService pythonServiceImpl;
    @GetMapping("/testexe")
    public String testexe() throws URISyntaxException, IOException {
      return  pythonExeServiceImpl.execute();
    }
    @GetMapping("/testpython")
    public String testpython() throws URISyntaxException, IOException {
        return  pythonServiceImpl.execute();
    }


}
